package org.rency.ues.domain.response;

import org.rency.common.utils.domain.BaseResult;
import org.rency.ues.common.UesDict;

/**
 * 验签响应
 *
 * @author: Created by user_rcy@163.com on 2016/08/31.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class VerifySignResponse extends BaseResult{

    /**
     * 验签结果
     */
    private boolean isVerified;

    public boolean isVerified() {
        return isVerified;
    }

    public void setVerified(boolean verified) {
        isVerified = verified;
    }

    public static VerifySignResponse success(){
        VerifySignResponse resp = new VerifySignResponse();
        resp.setSuccess(true);
        resp.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        return resp;
    }

    public static VerifySignResponse fail(String returnMessage){
        VerifySignResponse resp = new VerifySignResponse();
        resp.setSuccess(false);
        resp.setReturnMessage(returnMessage);
        return resp;
    }

}